package com.atguigu.yygh.apartment.repository;

import com.atguigu.yygh.model.hosp.ApartmentInfo;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ApartmentRepository extends MongoRepository<ApartmentInfo,String> {
    //判断是否存在数据
    ApartmentInfo getApartmentInfoByApartmentCode(String apartmentCode);


    //根据名字模糊查询
    List<ApartmentInfo> findApartmentInfoByApartmentNameLike(String apartmentName);
}
